package com.woniu.carrent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.carrent.pojo.TCartype;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TCartypeMapper extends BaseMapper<TCartype> {
    //根据车辆类型返回id
    @Select("select cTypeId from t_cartype where cTypeName=#{name}")
    Integer getIdBytype(String name);
}
